
import Taro from "@tarojs/taro"

//封装头
export default function GetHeader(contentType){

  let header={}

  if(Taro.getStorageSync(`auth`)){
   header=({
      'content-type': contentType,
      'auth':Taro.getStorageSync(`auth`)
    })
  }else{
   header=({
    'content-type': contentType,
  })
  }

  
  return header;
}